
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>14.10、Alarm · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-chapter-fold/chapter-fold.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="chapter14.11.html" />
    
    
    <link rel="prev" href="chapter14.9.html" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"xiaolanyun","repo":"DevOps_wiki","type":"star","size":"30px"}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="chapter1.html">
            
                <a href="chapter1.html">
            
                    
                    1、设计思路
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="chapter1.1.html">
            
                <a href="chapter1.1.html">
            
                    
                    1.1、参考文献
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="chapter2.html">
            
                <a href="chapter2.html">
            
                    
                    2、服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="chapter2.1.html">
            
                <a href="chapter2.1.html">
            
                    
                    2.1、配置静态ip
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="chapter2.2.html">
            
                <a href="chapter2.2.html">
            
                    
                    2.2、Centos7扩容
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="chapter3.html">
            
                <a href="chapter3.html">
            
                    
                    3、mysql
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="chapter3.1.html">
            
                <a href="chapter3.1.html">
            
                    
                    3.1、初始化登录
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="chapter3.2.html">
            
                <a href="chapter3.2.html">
            
                    
                    3.2、mysql5.7&8.0设置用户密码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="chapter3.3.html">
            
                <a href="chapter3.3.html">
            
                    
                    3.3、mysql5.7&8.0开启远程登录权限
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="chapter3.4.html">
            
                <a href="chapter3.4.html">
            
                    
                    3.4、mysql8.0驱动
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="chapter3.5.html">
            
                <a href="chapter3.5.html">
            
                    
                    3.5、mysql更改端口号
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="chapter4.html">
            
                <a href="chapter4.html">
            
                    
                    4、mongodb
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="chapter4.1.html">
            
                <a href="chapter4.1.html">
            
                    
                    4.1、安装部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="chapter4.2.html">
            
                <a href="chapter4.2.html">
            
                    
                    4.2、集群测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="chapter5.html">
            
                <a href="chapter5.html">
            
                    
                    5、redis
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="chapter5.1.html">
            
                <a href="chapter5.1.html">
            
                    
                    5.1、安装部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="chapter5.2.html">
            
                <a href="chapter5.2.html">
            
                    
                    5.2、集群测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="chapter5.3.html">
            
                <a href="chapter5.3.html">
            
                    
                    5.3、配置服务
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="chapter6.html">
            
                <a href="chapter6.html">
            
                    
                    6、Nexus
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="chapter6.1.html">
            
                <a href="chapter6.1.html">
            
                    
                    6.1、windows&linux_maven
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="chapter6.2.html">
            
                <a href="chapter6.2.html">
            
                    
                    6.2、Nexus
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="chapter7.html">
            
                <a href="chapter7.html">
            
                    
                    7、ZenTao
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="chapter7.1.html">
            
                <a href="chapter7.1.html">
            
                    
                    7.1、安装部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="chapter7.2.html">
            
                <a href="chapter7.2.html">
            
                    
                    7.2、禅道部分概念释义
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="chapter8.html">
            
                <a href="chapter8.html">
            
                    
                    8、jenkins
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="chapter8.1.html">
            
                <a href="chapter8.1.html">
            
                    
                    8.1、git
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="chapter8.2.html">
            
                <a href="chapter8.2.html">
            
                    
                    8.2、gradle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="chapter8.3.html">
            
                <a href="chapter8.3.html">
            
                    
                    8.3、sdk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="chapter8.4.html">
            
                <a href="chapter8.4.html">
            
                    
                    8.4、jenkins安装部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="chapter9.html">
            
                <a href="chapter9.html">
            
                    
                    9、Sonar
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="chapter9.1.html">
            
                <a href="chapter9.1.html">
            
                    
                    9.1、SonarQube
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="chapter9.2.html">
            
                <a href="chapter9.2.html">
            
                    
                    9.2、配置服务
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="chapter9.3.html">
            
                <a href="chapter9.3.html">
            
                    
                    9.3、SonarQubeScanner
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="chapter9.4.html">
            
                <a href="chapter9.4.html">
            
                    
                    9.4、集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="chapter10.html">
            
                <a href="chapter10.html">
            
                    
                    10、Android本地商城被测件
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="chapter10.1.html">
            
                <a href="chapter10.1.html">
            
                    
                    10.1、Android本地商城需求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.2" data-path="chapter10.2.html">
            
                <a href="chapter10.2.html">
            
                    
                    10.2、Android本地商城功能设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.3" data-path="chapter10.3.html">
            
                <a href="chapter10.3.html">
            
                    
                    10.3、Android本地商城业务及数据库设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.4" data-path="chapter10.4.html">
            
                <a href="chapter10.4.html">
            
                    
                    10.4、Android本地商城UI设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.5" data-path="chapter10.5.html">
            
                <a href="chapter10.5.html">
            
                    
                    10.5、Android本地商城托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.11.6" data-path="chapter10.6.html">
            
                <a href="chapter10.6.html">
            
                    
                    10.6、Android自动化构建
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="chapter11.html">
            
                <a href="chapter11.html">
            
                    
                    11、Appium_自动化测试框架
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.12.1" data-path="chapter11.1.html">
            
                <a href="chapter11.1.html">
            
                    
                    11.1、总体设计思路
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.2" data-path="chapter11.2.html">
            
                <a href="chapter11.2.html">
            
                    
                    11.2、环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.3" data-path="chapter11.3.html">
            
                <a href="chapter11.3.html">
            
                    
                    11.3、自动化测试框架
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.4" data-path="chapter11.4.html">
            
                <a href="chapter11.4.html">
            
                    
                    11.4、自动化测试框架托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.5" data-path="chapter11.5.html">
            
                <a href="chapter11.5.html">
            
                    
                    11.5、并行测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.6" data-path="chapter11.6.html">
            
                <a href="chapter11.6.html">
            
                    
                    11.6、并行测试框架托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.12.7" data-path="chapter11.7.html">
            
                <a href="chapter11.7.html">
            
                    
                    11.7、持续集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="chapter12.html">
            
                <a href="chapter12.html">
            
                    
                    12、Maxim_Monkey
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="chapter12.1.html">
            
                <a href="chapter12.1.html">
            
                    
                    12.1、Maxim_Monkey使用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.2" data-path="chapter12.2.html">
            
                <a href="chapter12.2.html">
            
                    
                    12.2、Maxim_Monkey托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13.3" data-path="chapter12.3.html">
            
                <a href="chapter12.3.html">
            
                    
                    12.3、持续集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="chapter13.html">
            
                <a href="chapter13.html">
            
                    
                    13、postman&newman
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.14.1" data-path="chapter13.1.html">
            
                <a href="chapter13.1.html">
            
                    
                    13.1、postman接口测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.2" data-path="chapter13.2.html">
            
                <a href="chapter13.2.html">
            
                    
                    13.2、newman
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.3" data-path="chapter13.3.html">
            
                <a href="chapter13.3.html">
            
                    
                    13.3、接口自动化示例托管地址
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14.4" data-path="chapter13.4.html">
            
                <a href="chapter13.4.html">
            
                    
                    13.4、持续集成
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="chapter14.html">
            
                <a href="chapter14.html">
            
                    
                    14、open-falcon
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.15.1" data-path="chapter14.1.html">
            
                <a href="chapter14.1.html">
            
                    
                    14.1、环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.2" data-path="chapter14.2.html">
            
                <a href="chapter14.2.html">
            
                    
                    14.2、单机&分布式安装说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.3" data-path="chapter14.3.html">
            
                <a href="chapter14.3.html">
            
                    
                    14.3、dashboard
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.4" data-path="chapter14.4.html">
            
                <a href="chapter14.4.html">
            
                    
                    14.4、Agent
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.5" data-path="chapter14.5.html">
            
                <a href="chapter14.5.html">
            
                    
                    14.5、Transfer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.6" data-path="chapter14.6.html">
            
                <a href="chapter14.6.html">
            
                    
                    14.6、Graph
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.7" data-path="chapter14.7.html">
            
                <a href="chapter14.7.html">
            
                    
                    14.7、API
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.8" data-path="chapter14.8.html">
            
                <a href="chapter14.8.html">
            
                    
                    14.8、HBS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.9" data-path="chapter14.9.html">
            
                <a href="chapter14.9.html">
            
                    
                    14.9、Judge
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.15.10" data-path="chapter14.10.html">
            
                <a href="chapter14.10.html">
            
                    
                    14.10、Alarm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.11" data-path="chapter14.11.html">
            
                <a href="chapter14.11.html">
            
                    
                    14.11、Nodata
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15.12" data-path="chapter14.12.html">
            
                <a href="chapter14.12.html">
            
                    
                    14.12、Aggregator
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="chapter15.html">
            
                <a href="chapter15.html">
            
                    
                    15、gitbook_wiki
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.16.1" data-path="chapter15.1.html">
            
                <a href="chapter15.1.html">
            
                    
                    15.1、wiki搭建使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="chapter16.html">
            
                <a href="chapter16.html">
            
                    
                    16、前端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="chapter16.1.html">
            
                <a href="chapter16.1.html">
            
                    
                    16.1、UI设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="chapter16.2.html">
            
                <a href="chapter16.2.html">
            
                    
                    16.2、前端托管地址
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.18" data-path="chapter17.html">
            
                <a href="chapter17.html">
            
                    
                    17、附加说明
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.18.1" data-path="chapter17.1.html">
            
                <a href="chapter17.1.html">
            
                    
                    17.1、服务器配置一览
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >14.10、Alarm</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h3 id="1410&#x3001;alarm">14.10&#x3001;Alarm</h3>
<p>1&#x3001;&#x4ECB;&#x7ECD;</p>
<p>alarm&#x6A21;&#x5757;&#x662F;&#x5904;&#x7406;&#x62A5;&#x8B66;event&#x7684;&#xFF0C;judge&#x4EA7;&#x751F;&#x7684;&#x62A5;&#x8B66;event&#x5199;&#x5165;redis&#xFF0C;alarm&#x4ECE;redis&#x8BFB;&#x53D6;&#x5904;&#x7406;&#xFF0C;&#x5E76;&#x8FDB;&#x884C;&#x4E0D;&#x540C;&#x6E20;&#x9053;&#x7684;&#x53D1;&#x9001;&#x3002;</p>
<p>&#x62A5;&#x8B66;event&#x7684;&#x5904;&#x7406;&#x903B;&#x8F91;&#x5E76;&#x975E;&#x4EC5;&#x4EC5;&#x662F;&#x53D1;&#x90AE;&#x4EF6;&#x3001;&#x53D1;&#x77ED;&#x4FE1;&#x8FD9;&#x4E48;&#x7B80;&#x5355;&#x3002;&#x4E3A;&#x4E86;&#x80FD;&#x591F;&#x81EA;&#x52A8;&#x5316;&#x5BF9;event&#x505A;&#x5904;&#x7406;&#xFF0C;alarm&#x9700;&#x8981;&#x652F;&#x6301;&#x5728;&#x4EA7;&#x751F;event&#x7684;&#x65F6;&#x5019;&#x56DE;&#x8C03;&#x7528;&#x6237;&#x63D0;&#x4F9B;&#x7684;&#x63A5;&#x53E3;&#xFF1B;&#x6709;&#x7684;&#x65F6;&#x5019;&#x62A5;&#x8B66;&#x77ED;&#x4FE1;&#x3001;&#x90AE;&#x4EF6;&#x592A;&#x591A;&#xFF0C;&#x5BF9;&#x4E8E;&#x4F18;&#x5148;&#x7EA7;&#x6BD4;&#x8F83;&#x4F4E;&#x7684;&#x62A5;&#x8B66;&#xFF0C;&#x5E0C;&#x671B;&#x505A;&#x62A5;&#x8B66;&#x5408;&#x5E76;&#xFF0C;&#x8FD9;&#x4E9B;&#x903B;&#x8F91;&#x90FD;&#x662F;&#x5728;alarm&#x4E2D;&#x505A;&#x7684;&#x3002;</p>
<p>&#x5728;&#x914D;&#x7F6E;&#x62A5;&#x8B66;&#x7B56;&#x7565;&#x7684;&#x65F6;&#x5019;&#x914D;&#x7F6E;&#x4E86;&#x62A5;&#x8B66;&#x7EA7;&#x522B;&#xFF0C;&#x6BD4;&#x5982;P0/P1/P2&#x7B49;&#x7B49;&#xFF0C;&#x6BCF;&#x4E2A;&#x53CA;&#x522B;&#x7684;&#x62A5;&#x8B66;&#x90FD;&#x4F1A;&#x5BF9;&#x5E94;&#x4E0D;&#x540C;&#x7684;redis&#x961F;&#x5217; alarm&#x53BB;&#x8BFB;&#x53D6;&#x8FD9;&#x4E2A;&#x6570;&#x636E;&#x7684;&#x65F6;&#x5019;&#x6211;&#x4EEC;&#x5E0C;&#x671B;&#x5148;&#x8BFB;&#x53D6;P0&#x7684;&#x6570;&#x636E;&#xFF0C;&#x518D;&#x8BFB;&#x53D6;P1&#x7684;&#x6570;&#x636E;&#xFF0C;&#x6700;&#x540E;&#x8BFB;&#x53D6;P5&#x7684;&#x6570;&#x636E;&#xFF0C;&#x56E0;&#x4E3A;&#x6211;&#x4EEC;&#x5E0C;&#x671B;&#x5148;&#x5904;&#x7406;&#x4F18;&#x5148;&#x7EA7;&#x9AD8;&#x7684;&#x3002;&#x4E8E;&#x662F;&#xFF1A;&#x7528;&#x4E86;redis&#x7684;brpop&#x6307;&#x4EE4;&#x3002;</p>
<p>&#x5DF2;&#x7ECF;&#x53D1;&#x9001;&#x7684;&#x544A;&#x8B66;&#x4FE1;&#x606F;&#xFF0C;alarm&#x4F1A;&#x5199;&#x5165;MySQL&#x4E2D;&#x4FDD;&#x5B58;&#xFF0C;&#x8FD9;&#x6837;&#x7528;&#x6237;&#x5C31;&#x53EF;&#x4EE5;&#x5728;dashboard&#x4E2D;&#x67E5;&#x9605;&#x5386;&#x53F2;&#x62A5;&#x8B66;&#xFF0C;&#x540C;&#x65F6;&#x9488;&#x5BF9;&#x540C;&#x4E00;&#x4E2A;&#x7B56;&#x7565;&#x53D1;&#x51FA;&#x7684;&#x591A;&#x6761;&#x62A5;&#x8B66;&#xFF0C;&#x5728;MySQL&#x5B58;&#x50A8;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4F1A;&#x805A;&#x7C7B;&#xFF1B;&#x5386;&#x53F2;&#x62A5;&#x8B66;&#x4FDD;&#x5B58;&#x7684;&#x5468;&#x671F;&#xFF0C;&#x662F;&#x53EF;&#x914D;&#x7F6E;&#x7684;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;7&#x5929;&#x3002;</p>
<hr>
<p>2&#x3001;&#x90E8;&#x7F72;&#x8BF4;&#x660E;</p>
<p>alarm&#x662F;&#x4E2A;&#x5355;&#x70B9;&#x3002;&#x5BF9;&#x4E8E;&#x672A;&#x6062;&#x590D;&#x7684;&#x544A;&#x8B66;&#x662F;&#x653E;&#x5230;alarm&#x7684;&#x5185;&#x5B58;&#x4E2D;&#x7684;&#xFF0C;alarm&#x8FD8;&#x9700;&#x8981;&#x505A;&#x62A5;&#x8B66;&#x5408;&#x5E76;&#xFF0C;&#x6545;&#x800C;alarm&#x53EA;&#x80FD;&#x90E8;&#x7F72;&#x4E00;&#x4E2A;&#x5B9E;&#x4F8B;&#x3002;&#x9700;&#x8981;&#x5BF9;alarm&#x7684;&#x5B58;&#x6D3B;&#x505A;&#x597D;&#x76D1;&#x63A7;&#x3002;</p>
<p>&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5FC5;&#x987B;&#x53EB;cfg.json&#xFF1A;</p>
<pre><code>{

    &quot;log_level&quot;: &quot;debug&quot;,

    &quot;http&quot;: {

        &quot;enabled&quot;: true,

        &quot;listen&quot;: &quot;0.0.0.0:9912&quot;

    },

    &quot;redis&quot;: {

        &quot;addr&quot;: &quot;127.0.0.1:6379&quot;,

        &quot;maxIdle&quot;: 5,

        &quot;highQueues&quot;: [

            &quot;event:p0&quot;,

            &quot;event:p1&quot;,

            &quot;event:p2&quot;

        ],

        &quot;lowQueues&quot;: [

            &quot;event:p3&quot;,

            &quot;event:p4&quot;,

            &quot;event:p5&quot;,

            &quot;event:p6&quot;

        ],

        &quot;userIMQueue&quot;: &quot;/queue/user/im&quot;,

        &quot;userSmsQueue&quot;: &quot;/queue/user/sms&quot;,

        &quot;userMailQueue&quot;: &quot;/queue/user/mail&quot;

    },

    &quot;api&quot;: {

        &quot;im&quot;: &quot;http://127.0.0.1:10086/wechat&quot;,  //&#x5FAE;&#x4FE1;&#x53D1;&#x9001;&#x7F51;&#x5173;&#x5730;&#x5740;

        &quot;sms&quot;: &quot;http://127.0.0.1:10086/sms&quot;,  //&#x77ED;&#x4FE1;&#x53D1;&#x9001;&#x7F51;&#x5173;&#x5730;&#x5740;

        &quot;mail&quot;: &quot;http://127.0.0.1:10086/mail&quot;, //&#x90AE;&#x4EF6;&#x53D1;&#x9001;&#x7F51;&#x5173;&#x5730;&#x5740;

        &quot;dashboard&quot;: &quot;http://127.0.0.1:8081&quot;,  //dashboard&#x6A21;&#x5757;&#x7684;&#x8FD0;&#x884C;&#x5730;&#x5740;

        &quot;plus_api&quot;:&quot;http://127.0.0.1:8080&quot;,   //falcon-plus api&#x6A21;&#x5757;&#x7684;&#x8FD0;&#x884C;&#x5730;&#x5740;

        &quot;plus_api_token&quot;: &quot;default-token-used-in-server-side&quot; //&#x7528;&#x4E8E;&#x548C;falcon-plus api&#x6A21;&#x5757;&#x670D;&#x52A1;&#x7AEF;&#x4E4B;&#x95F4;&#x7684;&#x901A;&#x4FE1;&#x8BA4;&#x8BC1;token

    },

    &quot;falcon_portal&quot;: {

        &quot;addr&quot;: &quot;root:@tcp(127.0.0.1:3306)/alarms?charset=utf8&amp;loc=Asia%2FChongqing&quot;,

        &quot;idle&quot;: 10,

        &quot;max&quot;: 100

    },

    &quot;worker&quot;: {

        &quot;im&quot;: 10,

        &quot;sms&quot;: 10,

        &quot;mail&quot;: 50

    },

    &quot;housekeeper&quot;: {

        &quot;event_retention_days&quot;: 7,  //&#x62A5;&#x8B66;&#x5386;&#x53F2;&#x4FE1;&#x606F;&#x7684;&#x4FDD;&#x7559;&#x5929;&#x6570;

        &quot;event_delete_batch&quot;: 100

    }

}
</code></pre><hr>
<p>3&#x3001;&#x8FDB;&#x7A0B;&#x7BA1;&#x7406;</p>
<pre><code># &#x542F;&#x52A8;
./open-falcon start alarm

# &#x505C;&#x6B62;
./open-falcon stop alarm

# &#x67E5;&#x770B;&#x65E5;&#x5FD7;
./open-falcon monitor alarm
</code></pre><hr>
<p>4&#x3001;&#x5907;&#x6CE8;</p>
<p>&#x5982;&#x679C;&#x67D0;&#x4E2A;&#x6838;&#x5FC3;&#x670D;&#x52A1;&#x6302;&#x4E86;&#xFF0C;&#x53EF;&#x80FD;&#x4F1A;&#x9020;&#x6210;&#x5927;&#x9762;&#x79EF;&#x62A5;&#x8B66;&#xFF0C;&#x4E3A;&#x4E86;&#x51CF;&#x5C11;&#x62A5;&#x8B66;&#x77ED;&#x4FE1;&#x6570;&#x91CF;&#xFF0C;&#x505A;&#x4E86;&#x62A5;&#x8B66;&#x5408;&#x5E76;&#x529F;&#x80FD;&#x3002;&#x628A;&#x62A5;&#x8B66;&#x4FE1;&#x606F;&#x5199;&#x5165;dashboard&#x6A21;&#x5757;&#xFF0C;&#x7136;&#x540E;dashboard&#x8FD4;&#x56DE;&#x4E00;&#x4E2A;url&#x5730;&#x5740;&#x7ED9;alarm&#xFF0C;alarm&#x5C06;&#x8FD9;&#x4E2A;url&#x94FE;&#x63A5;&#x53D1;&#x7ED9;&#x7528;&#x6237;&#xFF0C;&#x8FD9;&#x6837;&#x7528;&#x6237;&#x53EA;&#x8981;&#x6536;&#x5230;&#x4E00;&#x6761;&#x77ED;&#x4FE1;&#xFF08;&#x91CC;&#x8FB9;&#x662F;&#x4E2A;url&#x5730;&#x5740;&#xFF09;&#xFF0C;&#x70B9;&#x51FB;url&#x8FDB;&#x53BB;&#x5C31;&#x662F;&#x591A;&#x6761;&#x62A5;&#x8B66;&#x5185;&#x5BB9;&#x3002;</p>
<p>highQueues&#x4E2D;&#x914D;&#x7F6E;&#x7684;&#x51E0;&#x4E2A;event&#x961F;&#x5217;&#x4E2D;&#x7684;&#x4E8B;&#x4EF6;&#x662F;&#x4E0D;&#x4F1A;&#x505A;&#x62A5;&#x8B66;&#x5408;&#x5E76;&#x7684;&#xFF0C;&#x56E0;&#x4E3A;&#x90A3;&#x4E9B;&#x662F;&#x9AD8;&#x4F18;&#x5148;&#x7EA7;&#x7684;&#x62A5;&#x8B66;&#xFF0C;&#x62A5;&#x8B66;&#x5408;&#x5E76;&#x53EA;&#x662F;&#x9488;&#x5BF9;lowQueues&#x4E2D;&#x7684;&#x4E8B;&#x4EF6;&#x3002;&#x5982;&#x679C;&#x6240;&#x6709;&#x7684;&#x4E8B;&#x4EF6;&#x90FD;&#x4E0D;&#x60F3;&#x505A;&#x62A5;&#x8B66;&#x5408;&#x5E76;&#xFF0C;&#x5C31;&#x628A;&#x6240;&#x6709;&#x7684;event&#x961F;&#x5217;&#x90FD;&#x914D;&#x7F6E;&#x5230;highQueues&#x4E2D;&#x5373;&#x53EF;</p>

<script>console.log("plugin-popup....");document.onclick = function(e){ e.target.tagName === "IMG" && window.open(e.target.src,e.target.src)}</script><style>img{cursor:pointer}</style>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="chapter14.9.html" class="navigation navigation-prev " aria-label="Previous page: 14.9、Judge">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="chapter14.11.html" class="navigation navigation-next " aria-label="Next page: 14.11、Nodata">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"14.10、Alarm","level":"1.15.10","depth":2,"next":{"title":"14.11、Nodata","level":"1.15.11","depth":2,"path":"chapter14.11.md","ref":"chapter14.11.md","articles":[]},"previous":{"title":"14.9、Judge","level":"1.15.9","depth":2,"path":"chapter14.9.md","ref":"chapter14.9.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["back-to-top-button","chapter-fold","expandable-chapters-small","insert-logo","splitter","popup","github","github-buttons","livereload"],"pluginsConfig":{"chapter-fold":{},"github":{"url":"https://github.com/xiaolanyun","size":"50px"},"livereload":{},"splitter":{},"search":{},"popup":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"github-buttons":{"buttons":[{"user":"xiaolanyun","repo":"DevOps_wiki","type":"star","size":"30px"}]},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"insert-logo":{"style":"background: none; max-height: 60px; min-height: 30px","url":"http://server.zzidc.com/uploads/allimg/171120/1-1G120162T3202.png"}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"chapter14.10.md","mtime":"2019-04-27T05:33:55.201Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-05-07T07:59:20.478Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-chapter-fold/chapter-fold.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

